<div class="container-fluid Nav">
    <div class="content row">
        <nav class="navbar " role="navigation">

            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse"
                        data-target="#example-navbar-collapse">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand logo" href="/"><img src="/assets/web/images/logo.png" style="width: 140px;"></a>
            </div>
            <div class="collapse navbar-collapse" id="example-navbar-collapse">
                {if !session("user")}
                <ul class="nav navbar-nav navbar-right loginNav">
                    <li><a  href="{:url('user/login')}">登录</a></li>
                    <li><a  href="{:url('user/register')}">注册</a></li>
                </ul>
                {else/}
                    <ul class="nav navbar-nav navbar-right loginNav">
                        <li><a  href="{:url('user/index')}">个人中心</a></li>
                    </ul>
                {/if}
                <ul class="nav  navbar-nav navbar-right headNav">
                    <li {if strtolower(request()->controller())=="index"} class="active"{/if}><a href="/">首页</a></li>
                    {volist name="categoryList" id="vo"}
                        {if $vo.links}
                        <li><a href="{$vo.links}" target="_blank">{$vo.name}</a></li>
                        {else/}
                        <li  {if $c==$vo.id}class="active" {/if}><a href="{:url('cate/index',['c'=>$vo['id']])}">{$vo.name}</a></li>
                        {/if}
                    {/volist}
                </ul>
            </div>

        </nav>
    </div>
</div>
{if strtolower(request()->controller())!="user"}
<div class="container-fluid row " onclick="easyliao()">
    <div id="myCarousel" class="carousel slide">
        <!-- 轮播（Carousel）指标 -->
        <ol class="carousel-indicators">
            {volist name="bannerList" id="banner"}
            <li data-target="#myCarousel" data-slide-to="{$key}" {if $key==0}class="active"{/if}></li>
            {/volist}
        </ol>
        <!-- 轮播（Carousel）项目 -->
        <div class="carousel-inner">
            {volist name="bannerList" id="banner"}
            <div class="item {if $key==0}active{/if}">
                <img src="{$banner.image}">
            </div>
            {/volist}
            <!--<div class="item">
                <img src="/assets/web/images/banner-zpzx.jpg">
            </div>-->
        </div>
    </div>
</div>
{/if}